/**
 * org.assess.oa.system.dao.impl.TbPostRoleDAOImpl
 */
package org.assess.oa.system.dao.impl;

import java.util.List;

import org.assess.core.dao.BaseDAOImpl;
import org.assess.oa.system.bean.TbPostRole;
import org.assess.oa.system.dao.TbPostRoleDAO;

/**
 * @description 操作岗位权限关联信息表的DAO层实现类
 * @author XiaLongxiang
 * @createtime 2012-6-5 上午10:12:39
 */
public class TbPostRoleDAOImpl extends BaseDAOImpl<TbPostRole> implements TbPostRoleDAO {
    @SuppressWarnings("unchecked")
    public List<TbPostRole> queryTbPostRoleByPostIdAsList(String post_id) {
        return sqlClient.queryForList("queryTbPostRoleByPostIdAsList", post_id);
    }
    
    public boolean deleteTbPostRoleById(String post_role_id) {
        sqlClient.delete("deleteTbPostRoleById", post_role_id);
        return true;
    }
    
    public boolean deleteTbPostRoleByPostId(String post_id) {
        sqlClient.delete("deleteTbPostRoleByPostId", post_id);
        return true;
    }
    
    public boolean deleteTbPostRoleByRoleId(String role_id) {
        sqlClient.delete("deleteTbPostRoleByRoleId", role_id);
        return true;
    }
}
